package com.javaweb.service.user;

import com.javaweb.pojo.User;

import java.util.List;

public interface UserService {
    //用户登录
    public User login(String userCode,String Password);
    //根据userId修改密码
    public boolean updatePwd(int id, String pwd);

        //增加用户信息
        public boolean add(User user);

        //根据条件查询用户列表
        public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);
        //根据条件查询用户表记录数
        public int getUserCount(String queryUserName, int queryUserRole);

        //根据userCode查询出User
        public User selectUserCodeExist(String userCode);

        //根据ID删除user
        public boolean deleteUserById(Integer delId);
        //根据ID查找user
        public User getUserById(String id);

        //修改用户信息
        public boolean modify(User user);
}
